package im.engure.provider.serviceimpl;

import im.engure.common.service.QuotesService;

import java.util.HashMap;
import java.util.Map;

public class QuotesServiceImpl implements QuotesService {

    private static Map<String, String> quotes = new HashMap<>();

    static {
        quotes.put("Li Jiacheng", "If a man is weak, he is his greatest enemy.");
        quotes.put("白居易", "浩荡入溟阔，志泰心超然。");
        quotes.put("Napoleon", "Is the true wisdom fortitude ambition.");
        quotes.put("Romain Rolland", "Heroes often eat the bread of suffering and trial.");
    }

    @Override
    public String getAQuoteByCelebrity(String celebrityName) {
        return quotes.getOrDefault(celebrityName, "对不起，改名人的名言暂未收录");
    }
}
